'use strict';
module.exports = (sequelize, DataTypes) => {
  const test = sequelize.define('test', {
    name: DataTypes.STRING,
    sex: {
      type: DataTypes.ENUM('0', '1')
    },
    phone: {
      type: DataTypes.STRING
    },
    wx: {
      type: DataTypes.STRING
    },
    live: {
      type: DataTypes.ENUM('0', '1')
    },
    content: {
      type: DataTypes.TEXT
    },
    img: {
      type: DataTypes.STRING
    },
    created_at: {
      type: DataTypes.INTEGER
    }
  }, {
    timestamps: false
  });
  test.associate = function(models) {
    // associations can be defined here
  };
  return test;
};